<?php
class Mlist extends CI_Model {
	public  function __construct() {
		parent::__construct();
	    $this->load->database();
	}
	public function level1_list()
	{
		$sql="select * from artist";
		$query=$this->db->query($sql);
		return $query->result_array();
	}
	public function level2($id) {
		$query=$this->db->query("select * from song where idAritst='".$id."'");
		return $query->result_array();
	}
}
?>